package mn.idax.exchange.otc.service.impl;

import mn.idax.exchange.otc.entity.Coin;
import mn.idax.exchange.otc.mapper.CoinMapper;
import mn.idax.exchange.otc.service.CoinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: dison
 * @Date: 2018/8/20 18:10
 * @Description:
 */
@Service
public class CoinServiceImpl implements CoinService {

    @Autowired
    private CoinMapper coinMapper;
    @Override
    public Coin selectByPrimaryKey(Integer coinId) {
        return coinMapper.selectByPrimaryKey(coinId);
    }

    @Override
    public Integer getCoinIdByCode(String code) {
        return coinMapper.getCoinIdByCode(code);
    }
}
